﻿using System;
using System.Collections.Generic;
using YJKInspectModelFunc.ModelLayer;

namespace YJKSparseDistance.ModelLayer
{
	internal class DoorPackerCompare : IEqualityComparer<BaseDoorPacker>
	{
		public bool Equals(BaseDoorPacker x, BaseDoorPacker y)
		{
			return x.ElementId == y.ElementId && x.LinkInstanceId == y.LinkInstanceId;
		}

		public int GetHashCode(BaseDoorPacker obj)
		{
			return obj.GetHashCode();
		}
	}
}
